package com.project.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

@Data
@TableName("t_comment")
public class CommentBean {
    @TableId(value = "pk_commentId",type = IdType.AUTO)
    private Integer id;

    @TableField("c_content")
    private String content;

    @TableField("c_user")
    private String user;

    @TableField("fk_newId")
    private Integer newId;

    public CommentBean() {
    }

    public CommentBean( String content, String user, Integer newId) {
        this.content = content;
        this.user = user;
        this.newId = newId;
    }
}
